package com.migu.contacts;

import com.frank.libandroid.BaseActivity;
import com.migu.contacts.databinding.ActivitySplashBinding;
import com.migu.contacts.util.UserCenter;

public class SplashActivity extends BaseActivity<ActivitySplashBinding> {
    @Override
    protected void initView() {
        super.initView();
        int delay = 2000;
        boolean b = BuildConfig.DEBUG;
        Class clazz = UserCenter.getStarter();
        if (BuildConfig.DEBUG) {
            delay = 100;
//            clazz = AddMomentActivity.class;
        }
        Class finalClazz = clazz;
        mBinding.getRoot().postDelayed(() -> {
            start(finalClazz);
            finish();
        }, delay);
    }

}